<?php
namespace Home\Model;
use Think\Model\ViewModel;
class CartViewModel extends ViewModel{
	public $viewFields = array(
			'Cart'=>array('id','cid','ctime','cdate','num','_type'=>'LEFT'),
			'FoodCategory'=>array('price','unit','title'=>'category','yprice','_type'=>'LEFT', '_on'=>'Cart.cid=FoodCategory.id'),
			'Food'=>array('food_name','food_image','_on'=>'Food.id=FoodCategory.fid'),
	);
}